package com.study.designmodes.service.liabilityChain.v1;

/**
 * 洗脸过滤器
 *
 * @author yangyanbin
 * @date 2023/03/21
 * @since 20230321
 */
public class WashFaceFilter extends AbstractPrepareFilter {

    /**
     * 调用父类有参构造
     * 子类在初始化时调用父类的参数的构造函数来完成初始化。
     *
     * @param nextPrepareFilter
     */
    public WashFaceFilter(AbstractPrepareFilter nextPrepareFilter) {
        super(nextPrepareFilter);
    }

    @Override
    public void prepare(PreparationList preparationList) {
        if (preparationList.isWashFace()) {
            System.out.println("洗脸");
        }
    }
}
